﻿using System.Collections;
using System.Collections.Generic;

namespace ZYing.LiquidThemeEngine.FileProviders
{
    public class NullLiquidThemeDirectoryContents : ILiquidThemeDirectoryContents
    {
        private NullLiquidThemeDirectoryContents()
        {

        }
        public static NullLiquidThemeDirectoryContents Instance { get; } = new NullLiquidThemeDirectoryContents();
        public bool Exists => false;

        public IEnumerator<ILiquidThemeFileInfo> GetEnumerator()
        {
            yield break;
        }

        IEnumerator IEnumerable.GetEnumerator()
        {
            return GetEnumerator();
        }
    }
}
